package com.bl.student.dao.model;

import com.bl.student.common.enums.OnlineStatus;
import com.bl.student.common.enums.TagType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by yujingyi on 2018/1/29.
 */
@Entity
@Data
@Table(name = "TAG")
@ApiModel(value = "TagEntity", description = "标签")
@DynamicInsert
@DynamicUpdate
public class TagEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "update_time")
    private Date updateTime;
}
